Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix plot for EnsembleSummary #683

Closed
wants to merge 1 commit into from
Closed

Conversation

ErikQQY
Copy link
Member

@ErikQQY ErikQQY commented Aug 26, 2023

Instead of using plot(summ; idxs=3), we should use plot(summ; trajectories=3)

Copy link

@ai-maintainer ai-maintainer bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-Maintainer Review for PR - Fix plot for EnsembleSummary

Title and Description 👍

The Title and description are clear, concise and helpful
The title and description of the pull request are clear and concise. They effectively communicate the purpose of the changes, which is to replace the usage of `idxs` with `trajectories` in the `plot` function call for `EnsembleSummary`.

Scope of Changes 👍

The changes are narrowly focused
The changes in this pull request are narrowly focused. The author is specifically addressing the issue related to the plot for `EnsembleSummary`. There are no indications that the author is trying to resolve multiple issues simultaneously.

Testing 👎

Testing details are missing
The description does not mention how the author tested the changes. It would be helpful for the author to include information about the testing process in the description to provide transparency and ensure that the changes have been adequately tested.

Suggested Changes

Include testing details
Please include details about how you tested these changes. This could be unit tests you added, manual testing you did, or even just a description of the types of scenarios you considered when making these changes.

Reviewed with AI Maintainer

@rveltz
Copy link
Contributor

rveltz commented Aug 26, 2023

I am not sure. I thought it would plot the statistics of the third component of the Problem, not the third trajectory

@ErikQQY
Copy link
Member Author

ErikQQY commented Aug 26, 2023

I thought it would plot the statistics of the third component of the Problem

Yeah, it plots the statistics of the third component of the problem, to plot the "pure" trajectory, we need to set error_style as :none: plot(summ; trajectories=3, error_style=:none)

See:
https://github.com/SciML/SciMLBase.jl/blob/89a29068ece2d90ef38a5a9fe90e4299c54924c1/src/ensemble/ensemble_solutions.jl#L156-L159

@ChrisRackauckas
Copy link
Member

Yes indeed, this is supposed to be the 3rd index of each solution, not the 3rd trajectory's solution over all variables. It seems that the idx indexing in the ensemblesolution is what's having an issue.

SciML/DifferentialEquations.jl#976 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants